import { createRouter, createWebHashHistory } from "vue-router";

const router = createRouter({
  history: createWebHashHistory(),
  routes: [
    {
      path: "/home",
      alias: "/",
      component: () => import("../views/Home.vue"), //路由懒加载
    },
    {
      path: "/buttonPage",
      component: () => import("../views/buttonPage.vue"),
    },
    {
      path: "/gridPage",
      component: () => import("../views/gridPage.vue"),
    },
    {
      path: "/tablePage",
      component: () => import("../views/TablePage/TablePage.vue"),
    },
    {
      path: "/Upload",
      component: () => import("../views/Upload/Upload.vue"),
    },
  ],
});

export default router;
